import request from '@/utils/request.js'
import apis from '@/utils/api'
/**
 * @param {Object} params
 * 商品
 */
export function addType(params) {
    return request.globalRequest(apis.addType, 'POST', params)
}
export function delType(params) {
    return request.globalRequest(apis.delType, 'POST', params)
}
export function updateType(params) {
    return request.globalRequest(apis.updateType, 'POST', params)
}
export function getTypeList(params) {
    return request.globalRequest(apis.getTypeList, 'POST', params)
}

export function getAllTypeList(params) {
    return request.globalRequest(apis.getAllTypeList, 'POST', params)
}
export function updateTypeOrder(params) {
    return request.globalRequest(apis.updateTypeOrder, 'POST', params)
}
export function getIndexNavType(params) {
    return request.globalRequest(apis.getIndexNavType, 'POST', params)
}


export default {
	addType,
	delType,
	updateType,
	getTypeList,
	getAllTypeList,
	updateTypeOrder,
	getIndexNavType,
}